{% extends "template.html" %}

{% block conteudo %}

<form method="post" action="/ConteudoProgramatico/{{id}}/Incluir/" >
		{% csrf_token %}
		<div class='formulario'>
			{{ form.aula.label }}:{{form.aula}}<br/> 
			{{form.data.label}}:{{form.data}}<br/>
			{{form.descricao.label }}:{{form.descricao}}<br/>
			{{form.competenciaHabilidade.label}}:{{form.competenciaHabilidade}}
			<input type=image src="{{ MEDIA_URL }}images/mais.png" width="20" height="20"> 
		</div>
</form>

<form action="/ConteudoProgramatico/" method="post">
	{% if erro %}
		{{ erro }}
	{% endif %}
	<table border="0" id="dr" width="100%" >
		<tbody>	
			<th colspan="3">
				Conteudo Programatico
			</th>		
			{% if erroLista %}
			 	<tr class="{{ classetr }}">
			 	 	<td colspan="3" >
						{{ erroLista }}
					</td>
				</tr>
			{% endif %}
			{% for competencia in conteudos %}
				{% cycle 'odd' 'even' as classetr silent %}        
            	<tr class="{{ classetr }}">
            		<td>
						{{ competencia.data}}
					</td>
					<td>
						{{ competencia.aula}}
					</td>
					<td>
						<a href="/ConteudoProgramatico/{{id}}/Excluir/{{ habilidade.id }}"><img src="{{ MEDIA_URL }}images/lixeira.png" width="20" height="20"/></a>
					</td>
				</tr>
			{% endfor %}
		</tbody>
	</table>
	{{form.error}}
</form>
<div class='navegacao'>
	<input type="submit"  value="Voltar" onclick="location. href= '/Habilidade/{{id}}' ">
</div>

{% endblock %}
